# -*- coding: utf-8 -*-
"""
Created on Sun Nov 28 10:49:36 2021

@author: Administrator
"""

from math import sqrt
from math import radians
from math import cos
from math import sin
from math import pi
import matplotlib.pyplot as plt

x_values  = []
y_values  = []
x,y = (300,300)

for angle in range(180):
    radius = 3
    x += math.cos(math.radians(angle)) * radius  #调用cos,sin函数（以弧度作为参数）让圆心在圆周上移动
    y -= math.sin(math.radians(angle)) * radius	#将角度转化为弧度，需导入math库
    x_values.append(x)
    y_values.append(y)

plt.xlim(xmax=1000,xmin=0)
plt.ylim(ymax=600,ymin=0)
plt.scatter(x_values, y_values, s=50)
plt.show()
